<template>
    <!-- 进入hid -->
    <div class="bg-full-welcome">
      <div class="title">{{ $t('welcome.connectDeviceTitle') }}</div>
      <div class="device-info">
        <div class="device-list">{{ $t('welcome.supportedDevices') }}</div>
        <div class="device-list-box">
            <div class="device-list">{{ $t('welcome.customKeyboard') }}</div>
            <div class="device-list">{{ $t('welcome.magneticKeyboard') }}</div>
            <div class="device-list">{{ $t('welcome.gamingMouse') }}</div>
        </div>
        <div class="device-list">{{ $t('welcome.moreDevices') }}</div>
        <div class="device-list">
          {{ $t('welcome.firmwareUpdatePrefix') }}<a class="link-text" :href="firmwareUpdateUrl" target="_blank">{{ firmwareUpdateUrl }}</a>{{ $t('welcome.firmwareUpdateSuffix') }}</div>
      </div>
    </div>
  </template>
  
  <script setup>
  import { useI18n } from 'vue-i18n';
  
  const { t } = useI18n();
  const firmwareUpdateUrl = `${window.location.origin}/#/update`;
  </script>
  
  <style scoped>
  .bg-full-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #000;
    background-color: #fff;
    height: 100vh;
    width: 100%;
  }
  .title{
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 30px;
  }
  /* 设备信息框 */
  .device-info {
    background-color: #e9e9e9;
    width: 600px;
    box-sizing: border-box;
    padding: 10px 20px;
    text-align: left;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
  }
  .device-list-box{
    margin-left: -6px;
    margin-bottom: 15px;
  }
  .device-list {
    font-size: 14px;
    line-height: 1.6;
  }
  .link-text{
    text-decoration: underline;
    cursor: pointer;
  }
  </style>
  